home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
boss
/
boss_sup.lzh
/
REV.HST
< prev
next >
Wrap
Text File
|
1992-03-05
|
38KB
|
808 lines
/*
** WINDOWS - Simple but Elegant Window Functions
** (Datalight, Lattice, CI86, Microsoft, Borland
** Zortech, Mix PowerC, Manx AZTEC C, WATCOM)
**
** Copyright (c) 1984 - 1991 - Philip A. Mongelluzzo
** All rights reserved.
**
** Revision History in reverse order:
**
** The following changes were incorporated in the 03/15/92 release:
**
** Added wns_gfrm2 to workaround problems Topspeed C had
** in compiling wn_frmget.
** (wn_frmget.c) (V7.02)
**
** Added pulldown functions. This is actually a replacement
** for wn_popup but adding it in this way will protect
** existing users software investment.
** (wn_pdown.c) (V7.01)
**
** Certified Borland C++ 3.0 and TC++ for Windows
** (no code changes) (V7.00)
**
** Certified Microsoft Quick C for Windows.
** (no code changes) (V6.16)
**
** wn_frmget was not BACK TABBING over display text.
** Thanks to Rick Brown for reporting the problem and
** the fix.
** (wn_frmget.c) (V6.15)
**
** wn_getca was calling wns_err with an incorrect parameter.
** (wn_puts.c) (V6.14)
**
** The following changes were incorporated in the 10/31/91 release:
**
** Certified WATCOM 8.5, MIX Power C 2.10
** Borland TC++ 1.01, Borland TC 2.01, Borland C 2.0
**
** Dropped formal support of CI86, Datalight,
** Aztec, and Watcom's EXPRESS C.
** DO NOT CONFUSE EXPRESS C WITH WATCOM'S OPTIMIZING
** C COMPILER.
**
** Added wn_getca (get char and atrib from window).
** (wn_puts) (V6.13)
**
** Added wn_gmltext (get multiline text)
** (wn_gtext, winboss.h) (V6.12)
**
** Taught wn_input about ^RightArrow and ^LeftArrow.
** AKA word right and word left. Ground work for
** wn_gtxbuf (get text buffer).
** (wn_input, winboss.h) (V6.11)
**
** Added wn_gssn - get social security number
** (wn_gssn, wn_frmget, winboss.h) (V6.10)
**
** Added wn_clreol - Clear to end of line
** Added wn_clreow - Clear to end of window
** (wn_clrfns) (V6.09)
**
** Added wn_gedate - get European date.
** (winboss.h, wn_frmget, wn_gedate) (V6.08)
**
** v_setatr & v_setrev are no longer macros, they are
** now functions.
** (winboss.h, wn_bios) (V6.07)
**
** New shadow window type 510 which provides transparrent
** shadow (dimly lit characters). NOTE: windows with
** transparrent shadows can be moved freely, however,
** once they have been covered by another window and
** are moved the shadow area will loose sync with
** the underlying text. This is not a bug it is a
** restriction.
** (wn_open, wn_move, wn_activ) (V6.06)
**
** Added v_gctype - get cursor type. Ya all asked for it
** so ya all got it.
** (wn_bios) (V6.05)
**
** wn_popup was not handling BACKSPACE correctly. Thanks
** to Harold Jackson for reporting the problem.
** (wn_popup.c, winboss.h) (V6.04)
**
** WN_SBIT's definition changed in TCVLIB.ASM
** (tcvlib.asm) (V6.03)
**
** "windows.h" renamed to "winboss.h"
** "windows.ext" renamed to "winboss.ext"
** "windows.fns" renamed to "winboss.fns"
** These changes were made to eliminate the pontential
** conflict between Borland C++ (2.X) and The Window BOSS.
** (various) (V6.02)
**
** The following changes were incorporated in the 01/07/91 release:
**
** 12.26.90 - wn_hlinit was allocating more memory than was needed.
** (wn_help.c) (V6.01)
**
** TopSpeed "C" support added.
** (windows.h, windows.fnt)
**
** wn_gulong was short 1 byte on the mask it passes
** to wn_input.c. Thanks to the TopSpeed Compiler for
** finding this.
**
** Moved v_getchm() to "wn_mouse.c" to eliminate including
** ANY mouse code from applications that do not call
** any of the mouse functions. v_getchm() was previously
** located in "wn_bios.c".
**
** Microsoft 6.00A certification.
**
** 12.14.90 - wn_close was not setting wn->shadow to FALSE when
** closing shadowed windows. This was causing wn_activate
** to do potentially foolish things. (V6.00)
**
** (11.01.90) ** [Limited distribution release]
**
** 09.14.90 - Watcom 8.0 Support (V5.22)
**
** 08.25.90 - Added v_getchm() - get character or mouse press.
** (wn_mouse, wn_bios, windows.c,
** windows.ext) (V5.21)
**
** 07.25.90 - Zortech 2.10 Support. (V5.20)
**
** 07.23.90 - Mix Power C 2.00 Support. (V5.19)
**
** 07.18.90 - Turbo C++ Support. Created TCVLIB.ASM to get around
** Borland's oversight with regard to "CONST".
** (wn_print.c, tcvlib.asm) (V5.18)
**
** The following changes were incorporated in the 07.01.90 release:
**
** 06.16.90 - Cosmetic and misc changes: (BOSSDEMO.C,
** MAKELIB.BAT (LC6), include memory model directives
** for Lattice 6.XX batch files).
** Thanks again to Bill Hinkle. (V5.17)
**
** QuickC 2.5 Support.
**
** MSC 6.0 Support. Changed "windows.h" to CAST
** NULL as an int.
** (windows.h)
**
** 04.04.90 - wn_help was taught to use wn_putsa to enforce user
** specified help screen attributes. Tip of the hat
** to Chris Madsen.
** (wn_help.c) (V5.16)
**
** 03.23.90 - Added "wns_escape". This is set to TRUE by wn_input
** whenever ESCAPE has terimated the input. ESCAPE
** now terminates input for all input field types.
** (wn_gbool, wn_gdate, wn_double, wn_gfloat, wn_gphone)
** (wn_gtime, wn_guint, wn_gulong, wn_gint)
** Thanks Dexter!! (V5.15)
**
** 03.12.90 - Due to popular request, wn_open now range checks
** the window parameters to make sure that the window
** will actually fit on the screen. NULL is returned
** if not. This will prevent some cockpit "bad handle"
** error exits.
** (wn_open.c) (V5.14)
**
** 03.08.90 - Added wn_hlinit, wn_help, wn_popup, and wn_qpopup.
** These functions are close clones to the old sample
** code provided in help.c and popup.c. HELP.C and
** POPUP.C will no longer be distributed.
** (wn_help.c, wn_popup.c, windows.h)
** (genindex.c) (V5.13)
**
** 03.07.90 - Placed all "externals" in "windows.ext". This is
** being done to ease the burden of making changes
** to both global and external data. This will also
** keep all the constants in one p